Return error instead of showing an error dialog when printing
authorMarek Kasik <mkasik@redhat.com>
Mon, 7 Jun 2010 12:52:38 +0000 (14:52 +0200)
committerMarek Kasik <mkasik@redhat.com>
Mon, 7 Jun 2010 12:52:38 +0000 (14:52 +0200)
commitca6aacc32d8141c0d6ebbf8c1ed6152764232bae
tree61014921fed2f1221a9d8a1a3609b38c18739ce0
parent42deb581f936ee847cc54ddd936902934d889e7a
Return error instead of showing an error dialog when printing

Remove message dialogs showing an error when printing. Return
GTK_PRINT_OPERATION_RESULT_ERROR and set error in such a case.
Also return GTK_PRINT_OPERATION_RESULT_CANCEL when cancelled.
Do it for synchronous and asynchronous cases (#549127).
gtk/gtkprintjob.h
gtk/gtkprintoperation-unix.c
gtk/gtkprintoperation.c